<?php

/**
 * @package Nina
 * @author Andrew Rose <rose.andrew@gmail.com>
 */
class Nina_Db_Driver_Result_Mysql implements Nina_Db_Driver_Result
{
	private $dbcon;
	private $result;

	public function count() {
		return mysql_num_rows($this->result);
	}
	
	public function setDbCon($conn) {
		$this->dbcon = $conn;
	}
	
	public function setResult($result) {
		$this->result = $result;
	}

	public function affected() {
		return mysql_affected_rows($this->dbcon);
	}

	public function row() {
		return mysql_fetch_assoc($this->result);
	}
	
	public function seek($pos) {
		//mysql_seek_result();
	}
}
